<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>订单确认</title>
<link rel="stylesheet" href="/css/bootstrap.css">
<link rel="stylesheet" href="/css/animate.min.css">
<link rel="stylesheet" href="/css/main.css">
</head>
<body>
	<#include "/front/navigator.html">

	<section id="nav">
		<div class="container">
			<div class="row">
				<div class="col-sm-1"></div>
				<div class="col-sm-3">
					<a class="btn btn-default">第一步 我的购物车</a>
				</div>
				<div class="col-sm-3">
					<a class="btn btn-primary">第二步 填写核对订单信息</a>
				</div>
				<div class="col-sm-3">
					<a class="btn btn-default">第三步 成功提交订单</a>
				</div>
				<div class="col-sm-1"></div>
			</div>
		</div>
	</section>
	<hr />
	<form action="/admin/orderconfirm" method="post">
	<section id="shoppingcart">
		<div class="container">
			<hr />
			<h4>收货人信息</h4>
				<div class="row">
					<table class="table">
						<tr>
							<th>选择</th>
							<th>姓名</th>
							<th>地址</th>
							<th>邮编</th>
							<th>电话</th>
						</tr>
						<#if cmlist??>
						<td><a href="/SelectConsigneeList">添加收货人</a></td>
							<#list cmlist as cm>
								<tr>
									<td><input type="radio" name="consigneeId" value="${cm.consigneeId}"></td>
									<td>${cm.consigneeName}</td>
									<td>${cm.consigneeAddress}</td>
									<td>${cm.consigneeCode}</td>
									<td>${cm.consigneePhone}</td>
								</tr>
							</#list>
						</#if>
					</table>
				</div>
			<hr />
			<h4>送货清单</h4>
			<table class="table">
				<tr>
					<th width="50%">商品</th>
					<th>单价（元）</th>
					<th>数量</th>
					<th>小计</th>
				</tr>
				<#if list??>
					<#list list as od>
						<tr>
							<input type="hidden" name="goodsInfos" value="${(od.goodsId)!},${(od.ordeNumber)!},${(od.orderPrice)!}">
							<td><a href="/goodsinfo/${(od.goodsId)!}"> <img 
							style="width:50px;height:75px;object-fit:contain" src="${(od.goodsUrl)!}">
							${(od.goodsName)!}
							</a></td>
							<td>${(od.orderPrice)!}</td>
							<td>${(od.ordeNumber)!}</td>
							<td>${(od.everyTotal)!}</td>
						</tr>
					</#list>
			</#if>
			</table>
			<hr />
			<div class="footer">
				<div class="row">
					<div class="col-sm-6">
						</a>
					</div>
					<div class="col-sm-6" align="right">
						共<span style="color: red;">${num}</span>件商品 &nbsp; 应付总额：<span
							class="price">${sum}</span> <input type="submit"
							class="btn btn-danger" value="提交订单">
					</div>
				</div>

			</div>
			<hr />
		</div>

	</section>
</form>
	<footer>
		<div class="container">
			<div class="row">
				<div class="col-sm-12">
					<p>版权所有</p>
				</div>
			</div>
		</div>
	</footer>
</body>
</html>